home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / UTILITY / DOR421.ARJ / DOR.DOC next >
Text File  |  1992-03-15  |  20KB  |  398 lines

  1.                                        0
  2.  
  3.  
  4.  
  5.  
  6. ------------------------------------------------------------------------------
  7. |                                   DOR.EXE                                  |
  8. |                         COPYRIGHT (C) 1990 Tim Ward                        |
  9. |                                                                            |
  10. ------------------------------------------------------------------------------
  11.                                
  12.                                
  13.                                
  14.                                
  15.                                
  16.                                     DOR.EXE                         
  17.                              By Tim Ward, May 1990.                      
  18.                           Copyright (C) 1990 Tim Ward                    
  19.                                 V4.2, March 1992                         
  20.  
  21.  
  22.  
  23. DOR.EXE is  **NOT** Free software and is **NOT** Public Domain. DOR is provided
  24. AS IS ONLY. The author provides NO warranties, expressed or implied, and is NOT
  25. liable for any damage caused by the use or inability to use this program.
  26.  DOR.EXE may be distributed freely, as long as the distribution package includes
  27. this documentation text file DOR.DOC. You may evaluate DOR for a 15-day period.
  28. If you still use DOR after this, you are expected to send a registration fee.
  29.  
  30.           DOR.EXE is NOT public domain software. If you use it, please   
  31.                    send a registration of $15 [or more] to me            
  32.                              Tim Ward, c/o The Enchanter's Lair
  33.                              131 Naples St.
  34.                              Corpus Christi
  35.                              TX 78404-1828
  36.  
  37.  
  38.                                       1
  39.  
  40.  
  41.  
  42.  
  43.  
  44.      Many people are often annoyed by the DIR command built-in to DOS. They
  45. say that it doesn't really tell them what they want to know, and users on
  46. color systems especially complain about that bland monochromatic text that
  47. DOS likes to throw at them.  DOR was an effort to correct some of these minor
  48. deficiencies.  Actually, DOR does far more than DIR, and can and does perform
  49. features found in DOS's CHKDSK command, in the SIZE command that some users
  50. may be familiar with, and also the LOCATE command.
  51.  
  52.      With DOR, you can list all files on your disk at once.  If you wanted to
  53. make a file containing a list of all files currently on your disk, you would
  54. simply enter a command like "DOR \*.*/E-D > MYFILES.LOG" DOR can also calculate
  55. how much space files REALLY take up on your disk, as with the SIZE program.
  56. It of course, like DOS's DIR, gives you a count of how many files, and the
  57. amount of free space left on the drive, as well as the total capacity of the
  58. disk.  You should note, that to retain similarity to DIR, the file count
  59. includes any subdirectories, UNLESS YOU INCLUDE THE "/E" PARAMETER.
  60. Unlike DIR and other utilities, DOR automatically inserts COMMAS into
  61. number to make them more readable *.  It tries to find out the total memory
  62. of your system (under DOS, it will probably only find 640K maximum - an early
  63. silly oversight on the part of IBM (DOR does not search for extended or
  64. expanded RAM. If your system has more, it may not be reported )) and the amount
  65. free at the time (Naturally, it tries to underestimate if possible, and takes
  66. into account some of its own size.)
  67.  
  68.      To get help with the DOR syntax, simply enter "DOR /?" at the DOS prompt.
  69. "DOR /??" gives more help. "DOR /INFO" gives more information.
  70. DOR is probably of more use to you if you occasionally "loose" hidden and
  71. system files.  And yes,DOR can search through hidden and system subdirectories.
  72. It can display files in two columns, one column plus either file attributes,
  73. plain, or real space used on disk, or four columns like BASICA's FILES.
  74.      To terminate the listing of filenames, use either Ctrl-C or the Esc key.
  75. (DOR unfortunately still does not recognize the Ctrl-Break sequence.).
  76. NOTE: This might not always seem to work
  77.  
  78.      DOR 2.1 has a few changes over its previous incarnation, mainly in the
  79. way it treats hidden and system files, along with some code refinements to
  80. improve the way it handles subdirectory listings. Example - "DOR \D*" will
  81. list all directories starting with "D" that are one level down from the root
  82. directory.  It also handles user key input better. Also improved is the way
  83. DOR recovers from errors or user breaks, and the way it handles subdirectories.
  84. (see note on following page)
  85.  
  86.  
  87.  
  88.  
  89.                                       2
  90.  
  91.  
  92.  
  93.  
  94.  
  95. -----------------------------------------------------------------------------
  96.                       Directories and subdirectories.
  97.  
  98. DIR can usually find the subdirectory that you are referring to. DOR tries
  99. its hardest to see which subdirectory you want to look into.
  100. Say that your hard disk had a directory called "QUUX" and that you now were
  101. in directory "FOO", and you issued the command "DOR QUUX" .  DOR would
  102. first look to see if there is a file called "QUUX" in the directory FOO. It
  103. would then attempt to see if there was a subdirectory of FOO called QUUX.
  104. Failing all else, it would then proceed to see if there was a directory called
  105. FOO one level down from the root directory (i.e. "\FOO"). Sometimes DOR does
  106. show you a directory that you didn't want, this occurs only when you misspell
  107. the name of directory/file that you wanted to see, and THIS IS YOUR OWN FAULT !
  108. Otherwise, it should show you what you want. Experiment! You might not guess
  109. offhand that the easiest way to list all files on the disk was "DOR \/e+s+h"
  110. You don't actually need to put spaces in separating the parameters.
  111.  
  112.                                                            June 14, 1990.
  113. ---------------------------------------------------------->THaW<------------
  114.      Changes:
  115.   I have done a bit of minor rework to ensure more graceful exits from certain
  116. error conditions (whereas before you might have been left in a different
  117. directory from that which you started in), and cleared up a bit of confusion
  118. about disks that have no volume label.  Also have corrected a minor misfeature
  119. that was noticeable only to users with a mono system (such as myself !!)
  120. NOTE: Some people have asked about the /2 switch. In this listing mode, a "R"
  121. will be displayed next to the file size if it is READ-ONLY. Also, in this mode,
  122. files that have a "N" on their line DO NOT have the usual archive bit set.
  123. A "*" appearing on the file's line indicates that it is unusual, either in
  124. being READ-ONLY,HIDDEN,SYSTEM, or not having the ARC bit set. That's all that
  125. it means, really. Sorry if there was some confusion.
  126.                                                            June 21, 1990.
  127. ----------------------------------------------------------->THaW<---------------
  128.  
  129.  
  130.                                       3
  131.  
  132.  
  133.  
  134.  
  135.  
  136. --------------------------------------------------------------------------------
  137.       Revision : 4.2.-1
  138.    It's been quite some time now, and I've still been using DOR all this time
  139. and just living with most of its problems, because I never got round to making
  140. any serious changes.  Well, this isn't really the release I'd intended, that
  141. will be soon, though.
  142.      Now:
  143.    Easier to break out of listing with Ctrl-C or [Esc] keys.
  144.    Subdirectory display handled better during subdirectory searches.
  145.    New /ND switch gives Decimal values of charcaters in file names
  146.        (easier to enter using the [Alt]-Numeric Keypad approach.
  147.    Colors changed- all colors are bright on All video cards, except for ones
  148.       which are by definition monochrome ie Herc, MDA. - This was changed
  149.       the first time I used it on a VGA mono system. Sorry guys, I didn't
  150.       realize how nasty it looked !
  151.    The "File size on target disk" feature works.  To specify you want file
  152.     sizes for a different drive use something like "DOR ]a:". Before, if the
  153.     colon was entered there would be an error.
  154.  * Format of various numbers loose the commas when the number gets too big.
  155.     This is for those larger hard drives, which I hadn't considered last time.
  156.     "R" and "N" indicators don't show up for directories on short listing
  157.     "/B" option added.
  158.     Date and time functions functional.
  159.  
  160.   Still working on the sorted directory listings.  This may create problems,
  161.    I might have to ban using the /E switch for large drives (otherwise we
  162.    might have to try loading all the directory information for a 3GB drive if
  163.    someone tried the wrong command.)  I purposely have until now avoided the
  164.    sorted directory listing . Why ??  Well, if I was going to do that, I might
  165.    as well go ahead and make a whole file manager program, because all the
  166.    directory info would have to be loaded into memory before sorting, which
  167.    takes time and globs extra code (and expecially memory overhead.),
  168.    depending on  *how* you want the listing sorted.  I'm not sure, either,
  169.    if anyone could remember another N^X switches !!
  170.  
  171.                                                    March 4, 1992.
  172.  
  173.  --------------------------------------------------------->THaW<---------
  174.  
  175.                                       4
  176.  
  177.  
  178.  
  179.                 
  180.                 
  181.                 
  182.   Here is a sample of the output from DOR, of my E: drive (which is a logical
  183.   drive assigned to Hard Disk #1)
  184.                 
  185.                    Volume label of drive E: is : Rumpus Q w!                
  186.                                 Directory of E:\                            
  187. DOR42    C      33,620   3-15-92  1:48a   ARC       
  188. HELP     COM    17,026   6-01-90 12:47p   ARC          
  189. DOR42    EXE    70,694   3-15-92  3:43a   ARC         
  190. DOR      DOC    18,873   3-15-92  3:10a   ARC         
  191. DORX1    TXT         0   3-15-92  3:10a   ARC         
  192. DORX2    TXT         0   3-15-92  3:45a   ARC         
  193. 140,213 (159,744) Bytes         364,544 disk bytes total  640K total DOS memory
  194.        6  Files                 212,992 disk bytes free     143,626 bytes free
  195.                 
  196.  
  197.  
  198.     First, DOR gives the disk label, and the current directory, in this case,
  199. the root of E:
  200.   Each file is listed as follows:
  201.     File Name [+ extension]
  202.     File Size (with comma seperators for files less than 10MB big)
  203.        [for files larger than 10MB, if you want a comma-delimited size,
  204.         you might have to just use the /Z switch]
  205.     File Date (last two digits of year only displayed)
  206.     File Time (Twelve-hour format, with "a" for A.M., "p" for P.M.)
  207.     File attributes (in this case, only the ARC bits are set)
  208.  
  209.     The last two lines provide further information.
  210.     The first number if the total space required for the selected files, as
  211.   determined by adding their nominal filesizes (commas disappear when this
  212.   number is over 10MB)
  213.     The second number(in brackets) is the actual amount of space taken up on
  214.   the disk by the files (which is usually different from the first.)
  215.   (commas disappear when this number is over 100MB)
  216.     The third number is the drive capacity in bytes
  217.     The fourth number is the amount of RAM total reported by DOS
  218.        (this will not include extended or expanded memory)
  219.  
  220.     On the second line, DOR totals the number of files
  221.     [similar to DIR, directories are counted as files, unless subdirectory
  222.      searching is specified for DOR's command line, in which case they are
  223.      not.  DOR generally knows the difference between files and directories]
  224.  
  225.     Next is the amount of space free on the drive.
  226.  
  227.     Lastly on this line, the amount of memory that DOS reports as being free
  228.     [this is probably not the same amount given by CHKDSK, because I just
  229.      estimated the worst case scenario for DOR's memory requirements, which
  230.      may vary between machines, and command lines]
  231.  
  232.  
  233.                                       5
  234.  
  235.  
  236.  
  237.  
  238.  
  239. DOR [d:][\path\][filename.ext]   [options]  [ }t: ]
  240.     (External)    (C) 1990, 1992 Tim Ward
  241.  
  242. Shows all files and subdirectories on the specified drive, or on the default
  243. drive if no drive is specified. Includes hidden and system files.
  244. Filename is color-coded according to file attributes. Displays total size of
  245. selected files on disk. Includes total and free drive space & memory.
  246. If t: is included, file sizes calculated for specified other drive.
  247.  
  248.     -A = Do not include files with arc bit set   /A = list only files with arc
  249.     -D = Do not include subdirectories           /D = list only directories
  250.     -L = Don't show individual file data         /L = display file data only
  251.     -R = Do not include read-only files          /R = list only read-only files
  252.     +S = Include system files                    /S = list only system files
  253.     +H = Include hidden files                    /H = list only hidden files
  254.     /N = Display hex dump of file name           /E = Search in subdirectories
  255.     /ND= Display decimal dump of file name       /P = Pause after every page
  256.     /Z = Display actual space used on disk by each file
  257.     /2 = Display two columns of file listings.
  258.     /4 = Ultrawide. Four columns, filenames only /INFO = More information
  259.     /? = Displays this syntax help listing       /?? = Help Page 2
  260.  
  261.                     (Page Two Help Screen...)
  262.  
  263.  /+  All files dated today or after    /: Files with time after present time
  264.  /-  All files dated before today      /; Files with time before present time
  265.  /=  All files dated today
  266.  
  267.  /=MM-DD-YYYY  files dated on particular date  /:HH:MM Files after certain time
  268.  /-MM-DD-YYYY  files before particular date    /;HH:MM Files before certain time
  269.  /+MM-DD-YYYY  files on or after certain date           Where HH=Hour (1-24),
  270.                Where MM=Month,DD=Day,YYYY=Year                MM=Minutes
  271.   ** May be used to replace MM DD HH or MM. **** May be used to replace YYYY
  272.  
  273.  /B print files with full drive + Backslash path name.
  274.  
  275.    Examples Follow..........
  276.  
  277.    DOR \*.TXT /E /P  Displays all files with TXT extension, starting in the
  278.                      root directory, and searching all subdirectories ["/E"],
  279.                      Pausing every time the screen fills up ["/P"].
  280.  
  281.    DOR /+01-01-1992  Finds all files in current directory that were date stamped
  282.                      on or after Jan 1st, 1992.
  283.  
  284.    DOR \/E /:17:00 /;20:00
  285.                      Starts in the root directory ["\"] and searches all sub-
  286.                      directories ["/E"], finding files with time stamps After
  287.                      5 P.M. ["/:17:00"], but with time stamps before 8 P.M.
  288.                      ["/;20:00"]
  289.  
  290.    
  291.                                       6
  292.  
  293.  
  294.  
  295.  
  296.  
  297.    DOR *.ASM /;      Finds all files in the current directory with the ASM
  298.                      extension that have time stamps before what the system
  299.                      clock is currently set to.
  300.  
  301.    DOR \/E /R /=02-**-1991
  302.                      Starts in the root directory ["\"] and searches all sub-
  303.                      directories ["/E"] for files that are set to READ-ONLY
  304.                      ["/R"], that were dated for ANY DAY in February 1991
  305.                      ["/=" means date equals to, "02" specifies February,
  306.                      "1991" is the year, and "**" matches for any day.]
  307.  
  308.    DOR \/E /=03-01-****
  309.                      Starts in the root directory ["\"], and searches all sub-
  310.                      directories for files with a date stamp for April Fool's
  311.                      Day in any year.
  312.  
  313.    DOR \/E /+ /B >files.lst
  314.                      Ahah! Starting in the root directory, searching all sub-
  315.                      directories, with files stamped with the same date now set
  316.                      on the system clock (or later,) specifies the file by full
  317.                      drive:path\filename.extension, and writes this to the file
  318.                      files.lst.
  319.                        This gives a nice easy way to specify a list of files for
  320.                        backup purposes by a program such as, oh, um, PCCOPY.
  321.  
  322.    Do note that DOR if very flexible when specifing date and/or time ranges.
  323.  
  324.    DOR *.C /Z }B:    Finds all files in the current directory with the
  325.                      extension "C", and shows you how much space each
  326.                      [and cumulatively] they take up on drive B:
  327.                      ---> Useful for when copying files to floppies.
  328.                      Disk information shown will also pertain to drive B:
  329.  
  330.    DOR *.WK1 }B:     As above, but does not show amount of space required
  331.                      for individual files.
  332.  
  333.    DOR /L |SORT      Provides a sorted listing.
  334. @  DOR /L |SORT /+14            sorted by size.
  335. @  DOR /L |SORT /+26            sorted by date.
  336. @  DOR /L |SORT /+34            sorted by time.
  337. @  DOR /L |SORT /+41            sorted by "unordinary attribute flag"
  338. @  DOR /L |SORT /+43            sorted by file attributes.
  339.  
  340. @ If you use DOR /2, /4, or /B options, using |SORT /+n isn't probably
  341.   a very good idea.
  342.  
  343.  
  344.                                       7
  345.  
  346.  
  347.  
  348.    DOR \ /E /B /L |SORT >COMPLETE.LST
  349.                                 Finds all files on the current disk,
  350.                                 passes them as drive:path\filename.extension
  351.                                 listing to the DOS Sort utility, and then
  352.                                 writes them to the file COMPLETE.LST,
  353.                                 which contains an sorted list of all the files
  354.                                 on the disk.
  355.  
  356.   Note: Specifying "/L" will cause dor not to print drive & memory info,
  357.         or directory names or disk name.... DOR then simply gives file data.
  358.  
  359.   HINT: If you are going to redirect output from DOR using > >> or |   ,then
  360.         it makes life much easier for you NOT to use the /Z option.
  361.         [I mention this because it won't work !!]
  362.         use something like this:
  363.  
  364.             DOR /L |SORT |MORE
  365.  
  366.         I have tried to idiot-proof this, however, it might not be enough.
  367.  
  368.  
  369.   The Future:
  370.  
  371.         DOR 4.5 works with multiple drives, and can list files across multiple
  372.      drives, with error-checking for drives that are not ready (such as
  373.      floppies or removable hard disks), much in the way that a program called
  374.      PCTODAY can.
  375.  
  376.         I intend to release 4.5 in just a few months, IFF some people actually
  377.      respond and send registrations in. otherwise I won't bother with this
  378.      any more (and you'll never get to use those sort switches!) I DO have
  379.      other things to do with my time than endlessly revise old utlity progs.
  380.  
  381.  
  382. -----------------------------------------------------------------------------
  383.      DOR is just another example of the mindless creations brought about by
  384. Kawonk Experimental Software Projects.  Later this year we hope to have a
  385. prototype of the adventure game RUNCIBAL QUEST ready for release 
  386.     Or, wait for the (possible but at the moment improbable) release of the
  387. popular arcade game, "Revenge of the Ovuloid Citruses."
  388. -------------------------------------------------------------------------------
  389.  
  390.   Comments ? Complaints ?? Unusual personality disorders ??
  391. Send a letter or postcard. [even if you are not going to pay the measly
  392. registration fee, tell me if you find any redeeming value in the program]
  393. Customized versions (such as if you want the +S and +H switches set to ON
  394. all the time)/ source code may be available for a fee.
  395.  
  396.  
  397.  
  398.